package com.visionblue.business.ship.util

/**
 * @author: xlh
 * @date: 2020-06-02 3:16 PM
 * @desc:
 */
fun formatHex4Bits(strHex: String): String {
    return if (strHex.length < 4) {
        var ret = ""
        repeat(4 - strHex.length) {
            ret += "0"
        }
        ret += strHex
        ret
    } else strHex
}